# Finding PrepIds in McM

## Shortcuts to Find Your Samples in McM

McM can be quite slow and this sometimes cause errors while trying to access the information through web. It often helps if you use the fields for searches wisely.

### List of Fields that Help Faster McM Searches

* **dataset\_name** : e.g.) *DY\*MLM\** = String in dataset names can be used for searching.
* **tags** : e.g.) *EXO-monophoton* = Samples labeled with such string.
* **prepid** : e.g.) *EXO\*GS\** = prepIds for (wmLHE)GS is the only thing we need for cloning requests. The other steps (DRPremix, MiniAOD, etc.) are not needed, they will be attached as chains following the (wmLHE)GS prepIds.

**Example 1)** I know my sample's dataset name is "WRtoNLtoLLJJ\_MWR500to3500\_TuneCP5-madgraph-pythia8".

```http
https://cms-pdmv.cern.ch/mcm/requests?dataset_name=WRtoNLtoLLJJ_MWR500to3500_TuneCP5-madgraph-pythia8
```

**Example 2)** I know my samples' dataset names contain "WRtoNLtoLLJJ" and "TuneCP5-madgraph-pythia8" but I want to search for it more inclusively (all signal sample mass/grid points). Using "\*" is allowed in McM.

```http
https://cms-pdmv.cern.ch/mcm/requests?dataset_name=WRtoNLtoLLJJ*TuneCP5-madgraph-pythia8
```

**Example 3)** I know my samples are labeled with "EXO-MCI".

```http
https://cms-pdmv.cern.ch/mcm/requests?tags=EXO-MCI&page=0
```

Multiple fields can be searched by connecting the fields with "&".\
**Example 4)** I know my samples' dataset names contain "WRtoNLtoLLJJ" and "TuneCP5-madgraph-pythia8". But I only want to search for GS prepIds used for 2017 sample production.

```http
https://cms-pdmv.cern.ch/mcm/requests?dataset_name=WRtoNLtoLLJJ*TuneCP5-madgraph-pythia8&prepid=*17GS*
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://exo-mc-and-i.gitbook.io/exo-mc-and-interpretation/others/finding-prepids-in-mcm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
