|
| MoveFlatParamsToDB (const edm::ParameterSet &) |
|
| ~MoveFlatParamsToDB () |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
virtual | ~EDAnalyzer () |
|
| EDConsumerBase () |
|
ProductHolderIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
|
void | itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
void | itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const |
|
std::vector
< ProductHolderIndexAndSkipBit >
const & | itemsToGetFromEvent () const |
|
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
|
void | modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const |
|
bool | registeredToConsume (ProductHolderIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
void | updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &) |
|
virtual | ~EDConsumerBase () |
|
Definition at line 58 of file MoveFlatParamsToDB.cc.
Definition at line 94 of file MoveFlatParamsToDB.cc.
References gather_cfg::cout, hi::EPNames, i, list(), mergeVDriftHistosByStation::name, hi::NumEPNames, lumiContext::sname, x, and detailsBasic3DVector::y.
97 cout<<
"Enter MoveFlatParamsToDB"<<endl;
99 inFile =
new TFile(
"data/rpflat_combined.root");
101 cout<<
"file not found"<<endl;
103 TList *
list = ((TDirectory *)
inFile->Get(
"hiEvtPlaneFlatCalib"))->GetListOfKeys();
111 while(indx >=0 && indx<NumEPNames) {
113 TString
name = list->At(indx)->GetName();
114 if(!name.Contains(
"cent")&&!name.Contains(
"vtx")&&!name.Contains(
"MidEtaTrackRescor")) {
121 if(EPNameIndx <0)
cout<<
"A bad reaction plane name has been encountered: "<<name.Data()<<endl;
124 x[cnt] = (TH1D *)
inFile->Get(Form(
"hiEvtPlaneFlatCalib/%s/x_%s",name.Data(),name.Data()));
125 y[cnt] = (TH1D *)
inFile->Get(Form(
"hiEvtPlaneFlatCalib/%s/y_%s",name.Data(),name.Data()));
126 xycnt[cnt] = (TH1D *)
inFile->Get(Form(
"hiEvtPlaneFlatCalib/%s/cnt_%s",name.Data(),name.Data()));
128 if(!
x[cnt])
cout<<
"bad x"<<endl;
129 if(!
y[cnt])
cout<<
"bad y"<<endl;
131 if(
x[cnt] &&
xycnt[cnt] &&
y[cnt]) {
132 x[cnt]->Divide(
xycnt[cnt]);
133 y[cnt]->Divide(
xycnt[cnt]);
136 if(cnt>NumEPNames||cnt>50) {
137 cout<<
"Maximum number of reaction planes exceeded!"<<endl;
142 if(list->At(indx)==list->Last())
const std::string EPNames[]
string rpname[NumEPNames]
static const int NumEPNames
int RPNameIndx[NumEPNames]
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 list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run
MoveFlatParamsToDB::~MoveFlatParamsToDB |
( |
| ) |
|
Implements edm::EDAnalyzer.
Definition at line 167 of file MoveFlatParamsToDB.cc.
References gather_cfg::cout, i, j, RPFlatParams::EP::RPNameIndx, cond::service::PoolDBOutputService::writeOne(), RPFlatParams::EP::x, x, RPFlatParams::EP::y, and detailsBasic3DVector::y.
172 cout<<
"Size of table: "<<
x[0]->GetNbinsX()<<endl;
173 for(
int j = 0;
j<
x[0]->GetNbinsX();
j++) {
175 for(
int i = 0;
i<
nRP;
i++) {
176 thisBin->
x[
i] =
x[
i]->GetBinContent(
j+1);
177 thisBin->
y[
i] =
y[
i]->GetBinContent(
j+1);
181 if(thisBin)
delete thisBin;
183 cout<<
"Number of RP: "<<nRP<<endl;
185 if(poolDbService.isAvailable())
186 poolDbService->
writeOne(
rpFlat,poolDbService->beginOfTime(),
"HeavyIonRPRcd");
std::vector< EP > m_table
void writeOne(T *payload, Time_t time, const std::string &recordName, bool withlogging=false)
int RPNameIndx[NumEPNames]
void MoveFlatParamsToDB::beginJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
void MoveFlatParamsToDB::endJob |
( |
void |
| ) |
|
|
overrideprivatevirtual |
TFile* MoveFlatParamsToDB::inFile |
|
private |
int MoveFlatParamsToDB::nRP |
|
private |
string MoveFlatParamsToDB::rpname[NumEPNames] |
|
private |
int MoveFlatParamsToDB::RPNameIndx[NumEPNames] |
|
private |
int MoveFlatParamsToDB::RPSubEvnt[NumEPNames] |
|
private |
TH1D* MoveFlatParamsToDB::x[NumEPNames] |
|
private |
TH1D* MoveFlatParamsToDB::xycnt[NumEPNames] |
|
private |
TH1D* MoveFlatParamsToDB::y[NumEPNames] |
|
private |