24 , fullconf_( iConfig )
26 , doAllPlots_ ( conf_.getParameter<bool>(
"doAllPlots") )
27 , doDeDxPlots_ ( conf_.getParameter<bool>(
"doDeDxPlots") )
35 for (
auto const&
tag : dEdxInputList_) {
52 if(outputMEsInRootFile)
119 dEdxMEsVector[
i].ME_MipDeDx->setAxisTitle(
"dEdx of each MIP Track (MeV/cm)");
122 histname =
"MIP_NumberOfdEdxHitsPerTrack_";
124 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of dEdxHits of each MIP Track");
125 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of Tracks", 2);
127 histname =
"MIP_FractionOfSaturateddEdxHitsPerTrack_";
129 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Fraction of Saturated dEdxHits of each MIP Track");
130 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Number of Tracks", 2);
134 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"dEdx Mass of each MIP Track (GeV/c^{2})");
135 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
139 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"dEdx Mass of each HIP Track (GeV/c^{2})");
140 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
142 histname =
"MIPOfHighPt_dEdxPerTrack_";
144 dEdxMEsVector[
i].ME_MipHighPtDeDx->setAxisTitle(
"dEdx of each MIP (of High pT) Track (MeV/cm)");
145 dEdxMEsVector[
i].ME_MipHighPtDeDx->setAxisTitle(
"Number of Tracks", 2);
147 histname =
"MIPOfHighPt_NumberOfdEdxHitsPerTrack_";
149 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits->setAxisTitle(
"Number of dEdxHits of each MIP (of High pT) Track");
150 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits->setAxisTitle(
"Number of Tracks", 2);
162 if(I-
dEdxC<0)
return -1;
178 if(!trackCollectionHandle.
isValid())
return;
183 if(!dEdxObjectHandle.
isValid())
continue;
187 for(
unsigned int t=0;
t<trackCollectionHandle->size();
t++){
193 if( track->pt() >= 5.0 && track->numberOfValidHits()>
TrackHitMin){
195 dEdxMEsVector[
i].ME_MipDeDxNHits ->Fill(dEdxColl[track].numberOfMeasurements());
196 if (dEdxColl[track].numberOfMeasurements()!=0)
197 dEdxMEsVector[
i].ME_MipDeDxNSatHits->Fill((1.0*dEdxColl[track].numberOfSaturatedMeasurements())/dEdxColl[track].numberOfMeasurements());
203 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits ->Fill(dEdxColl[track].numberOfMeasurements());
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > trackToken_
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &) override
dEdxAnalyzer(const edm::ParameterSet &)
void addDefault(ParameterSetDescription const &psetDescription)
std::vector< std::string > dEdxInputList_
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
MonitorElement * book1D(Args &&...args)
GenericTriggerEventFlag * genTriggerEventFlag_
const std::complex< double > I
edm::InputTag trackInputTag_
std::vector< dEdxMEs > dEdxMEsVector
double mass(double P, double I)
void setCurrentFolder(const std::string &fullpath)
T const * product() const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
std::pair< OmniClusterRef, TrackingParticleRef > P
std::vector< edm::EDGetTokenT< reco::DeDxDataValueMap > > dEdxTokenList_
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
void showDirStructure(void) const
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override