CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BranchType.cc
Go to the documentation of this file.
2 #include <iostream>
3 
4 namespace edm {
5  std::ostream&
6  operator<<(std::ostream& os, BranchType const& branchType) {
7  os << BranchTypeToString(branchType);
8  return os;
9  }
10  namespace {
11 
12  // Suffixes
13  std::string const metaData = "MetaData";
14  std::string const auxiliary = "Auxiliary";
15  std::string const aux = "Aux"; // backward compatibility
16  std::string const productStatus = "ProductStatus";
17  std::string const branchEntryInfo = "BranchEntryInfo"; // backward compatibility
18  std::string const productProvenance = "ProductProvenance";
19 
20  // Prefixes
21  std::string const run = "Run";
22  std::string const lumi = "LuminosityBlock";
23  std::string const event = "Event";
24 
25  // Trees, branches, indices
26  std::string const runs = run + 's';
27  std::string const lumis = lumi + 's';
28  std::string const events = event + 's';
29 
30  std::string const runMeta = run + metaData;
31  std::string const lumiMeta = lumi + metaData;
32  std::string const eventMeta = event + metaData;
33 
34  std::string const runInfo = run + "StatusInformation"; // backward compatibility
35  std::string const lumiInfo = lumi + "StatusInformation"; // backward compatibility
36  std::string const eventInfo = event + "StatusInformation"; // backward compatibility
37 
38  std::string const runAuxiliary = run + auxiliary;
39  std::string const lumiAuxiliary = lumi + auxiliary;
40  std::string const eventAuxiliary = event + auxiliary;
41 
42  std::string const runProductStatus = run + productStatus; // backward compatibility
43  std::string const lumiProductStatus = lumi + productStatus; // backward compatibility
44  std::string const eventProductStatus = event + productStatus; // backward compatibility
45 
46  std::string const runEventEntryInfo = run + branchEntryInfo; // backward compatibility
47  std::string const lumiEventEntryInfo = lumi + branchEntryInfo; // backward compatibility
48  std::string const eventEventEntryInfo = event + branchEntryInfo; // backward compatibility
49 
50  std::string const runProductProvenance = run + productProvenance;
51  std::string const lumiProductProvenance = lumi + productProvenance;
52  std::string const eventProductProvenance = event + productProvenance;
53 
54 
55  std::string const majorIndex = ".id_.run_";
56  std::string const runMajorIndex = runAuxiliary + majorIndex;
57  std::string const lumiMajorIndex = lumiAuxiliary + majorIndex;
58  std::string const eventMajorIndex = eventAuxiliary + majorIndex;
59 
60  std::string const runMinorIndex; // empty
61  std::string const lumiMinorIndex = lumiAuxiliary + ".id_.luminosityBlock_";
62  std::string const eventMinorIndex = eventAuxiliary + ".id_.event_";
63 
64  std::string const runAux = run + aux;
65  std::string const lumiAux = lumi + aux;
66  std::string const eventAux = event + aux;
67 
68  std::string const entryDescriptionTree = "EntryDescription";
69  std::string const entryDescriptionIDBranch = "Hash";
70  std::string const entryDescriptionBranch = "Description";
71 
72  std::string const parentageTree = "Parentage";
73  std::string const parentageBranch = "Description";
74 
75  std::string const metaDataTree = "MetaData";
76  std::string const productRegistry = "ProductRegistry";
77  std::string const productDependencies = "ProductDependencies";
78  std::string const parameterSetMap = "ParameterSetMap";
79  std::string const moduleDescriptionMap = "ModuleDescriptionMap"; // Obsolete
80  std::string const processHistoryMap = "ProcessHistoryMap"; // Obsolete
81  std::string const processHistory = "ProcessHistory";
82  std::string const processConfiguration = "ProcessConfiguration";
83  std::string const branchIDLists = "BranchIDLists";
84  std::string const thinnedAssociationsHelper = "ThinnedAssociationsHelper";
85  std::string const fileFormatVersion = "FileFormatVersion";
86  std::string const fileIdentifier = "FileIdentifier";
87  std::string const fileIndex = "FileIndex";
88  std::string const indexIntoFile = "IndexIntoFile";
89  std::string const eventHistory = "EventHistory";
90  std::string const eventBranchMapper = "EventBranchMapper";
91 
92  std::string const eventSelections = "EventSelections";
93  std::string const branchListIndexes = "BranchListIndexes";
94 
95  std::string const parameterSetsTree = "ParameterSets";
96  std::string const idToParameterSetBlobsBranch = "IdToParameterSetsBlobs";
97  }
98 
100  return ((branchType == InEvent) ? event : ((branchType == InRun) ? run : lumi));
101  }
102 
104  return ((branchType == InEvent) ? events : ((branchType == InRun) ? runs : lumis));
105  }
106 
108  return ((branchType == InEvent) ? eventMeta : ((branchType == InRun) ? runMeta : lumiMeta));
109  }
110 
111  std::string const& BranchTypeToInfoTreeName(BranchType const& branchType) { // backward compatibility
112  return ((branchType == InEvent) ? eventInfo : ((branchType == InRun) ? runInfo : lumiInfo)); // backward compatibility
113  } // backward compatibility
114 
116  return ((branchType == InEvent) ? eventAuxiliary : ((branchType == InRun) ? runAuxiliary : lumiAuxiliary));
117  }
118 
119  std::string const& BranchTypeToAuxBranchName(BranchType const& branchType) { // backward compatibility
120  return ((branchType == InEvent) ? eventAux : ((branchType == InRun) ? runAux : lumiAux)); // backward compatibility
121  } // backward compatibility
122 
123  std::string const& BranchTypeToProductStatusBranchName(BranchType const& branchType) { // backward compatibility
124  return ((branchType == InEvent) ? eventProductStatus : ((branchType == InRun) ? runProductStatus : lumiProductStatus)); // backward compatibility
125  } // backward compatibility
126 
128  return ((branchType == InEvent) ? eventEventEntryInfo : ((branchType == InRun) ? runEventEntryInfo : lumiEventEntryInfo));
129  }
130 
132  return ((branchType == InEvent) ? eventProductProvenance : ((branchType == InRun) ? runProductProvenance : lumiProductProvenance));
133  }
134 
136  return ((branchType == InEvent) ? eventMajorIndex : ((branchType == InRun) ? runMajorIndex : lumiMajorIndex));
137  }
138 
140  return ((branchType == InEvent) ? eventMinorIndex : ((branchType == InRun) ? runMinorIndex : lumiMinorIndex));
141  }
142 
143  namespace poolNames {
144 
145  // EntryDescription tree (1 entry per recorded distinct value of EntryDescription)
147  return entryDescriptionTree;
148  }
149 
151  return entryDescriptionIDBranch;
152  }
153 
155  return entryDescriptionBranch;
156  }
157 
158  // EntryDescription tree (1 entry per recorded distinct value of EntryDescription)
160  return parentageTree;
161  }
162 
164  return parentageBranch;
165  }
166 
167  // MetaData Tree (1 entry per file)
169  return metaDataTree;
170  }
171 
172  // Branch on MetaData Tree
174  return productRegistry;
175  }
176 
177  // Branch on MetaData Tree
179  return productDependencies;
180  }
181 
182  // Branch on MetaData Tree
184  return parameterSetMap;
185  }
186 
187  // Branch on MetaData Tree // Obsolete
189  return moduleDescriptionMap;
190  }
191 
192  // Branch on MetaData Tree // Obsolete
194  return processHistoryMap;
195  }
196 
197  // Branch on MetaData Tree
199  return processHistory;
200  }
201 
202  // Branch on MetaData Tree
204  return processConfiguration;
205  }
206 
207  // Branch on MetaData Tree
209  return branchIDLists;
210  }
211 
212  // Branch on MetaData Tree
214  return thinnedAssociationsHelper;
215  }
216 
217  // Branch on MetaData Tree
219  return fileFormatVersion;
220  }
221 
222  // Branch on MetaData Tree
224  return fileIdentifier;
225  }
226 
227  // Branch on MetaData Tree
229  return fileIndex;
230  }
231 
232  // Branch on MetaData Tree
234  return indexIntoFile;
235  }
236 
237  // Branch on Event History Tree
239  return eventHistory;
240  }
241 
242  // Branches on Events Tree
244  return eventSelections;
245  }
246 
248  return branchListIndexes;
249  }
250 
252  return parameterSetsTree;
253  }
254  // Branch on ParameterSets Tree
256  return idToParameterSetBlobsBranch;
257  }
258 
259 
261  return events;
262  }
263 
265  return eventMeta;
266  }
267 
269  return eventHistory;
270  }
272  return lumis;
273  }
275  return runs;
276  }
277  }
278 }
std::string const & BranchTypeToMajorIndexName(BranchType const &branchType)
Definition: BranchType.cc:135
std::string const & idToParameterSetBlobsBranchName()
Definition: BranchType.cc:255
std::string const & BranchTypeToMetaDataTreeName(BranchType const &branchType)
Definition: BranchType.cc:107
std::string const & BranchTypeToAuxiliaryBranchName(BranchType const &branchType)
Definition: BranchType.cc:115
std::string const & parentageTreeName()
Definition: BranchType.cc:159
std::string const & entryDescriptionBranchName()
Definition: BranchType.cc:154
list lumiInfo
Definition: pileupCalc.py:262
tuple lumi
Definition: fjr2json.py:35
processConfiguration
Definition: Schedule.cc:369
std::string const & fileFormatVersionBranchName()
Definition: BranchType.cc:218
std::string const & eventSelectionsBranchName()
Definition: BranchType.cc:243
std::string const & luminosityBlockTreeName()
Definition: BranchType.cc:271
BranchType
Definition: BranchType.h:11
std::string const & parameterSetsTreeName()
Definition: BranchType.cc:251
tuple runs
Definition: gather_cfg.py:87
std::string const & processHistoryMapBranchName()
Definition: BranchType.cc:193
std::string const & fileIndexBranchName()
Definition: BranchType.cc:228
std::string const & entryDescriptionTreeName()
Definition: BranchType.cc:146
std::string const & indexIntoFileBranchName()
Definition: BranchType.cc:233
std::string const & eventHistoryBranchName()
Definition: BranchType.cc:238
std::string const & BranchTypeToMinorIndexName(BranchType const &branchType)
Definition: BranchType.cc:139
std::string const & BranchTypeToBranchEntryInfoBranchName(BranchType const &branchType)
Definition: BranchType.cc:127
std::string const & metaDataTreeName()
Definition: BranchType.cc:168
std::string const & BranchTypeToProductTreeName(BranchType const &branchType)
Definition: BranchType.cc:103
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
std::string const & runTreeName()
Definition: BranchType.cc:274
std::string const & parameterSetMapBranchName()
Definition: BranchType.cc:183
std::string const & processHistoryBranchName()
Definition: BranchType.cc:198
std::string const & BranchTypeToProductStatusBranchName(BranchType const &branchType)
Definition: BranchType.cc:123
std::string const & BranchTypeToInfoTreeName(BranchType const &branchType)
Definition: BranchType.cc:111
std::string const & eventMetaDataTreeName()
Definition: BranchType.cc:264
std::string const & parentageBranchName()
Definition: BranchType.cc:163
std::string const & BranchTypeToString(BranchType const &branchType)
Definition: BranchType.cc:99
std::string const & productDescriptionBranchName()
Definition: BranchType.cc:173
std::string const & processConfigurationBranchName()
Definition: BranchType.cc:203
tuple events
Definition: patZpeak.py:19
std::string const & BranchTypeToProductProvenanceBranchName(BranchType const &BranchType)
Definition: BranchType.cc:131
std::string const & productDependenciesBranchName()
Definition: BranchType.cc:178
std::string const & thinnedAssociationsHelperBranchName()
Definition: BranchType.cc:213
std::string const & eventTreeName()
Definition: BranchType.cc:260
std::string const & BranchTypeToAuxBranchName(BranchType const &branchType)
Definition: BranchType.cc:119
std::string const & entryDescriptionIDBranchName()
Definition: BranchType.cc:150
std::string const & branchIDListBranchName()
Definition: BranchType.cc:208
std::string const & branchListIndexesBranchName()
Definition: BranchType.cc:247
std::string const & eventHistoryTreeName()
Definition: BranchType.cc:268
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
std::string const & fileIdentifierBranchName()
Definition: BranchType.cc:223
std::string const & moduleDescriptionMapBranchName()
Definition: BranchType.cc:188