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);
158 if(I-
dEdxC<0)
return -1;
174 if(!trackCollectionHandle.
isValid())
return;
179 if(!dEdxObjectHandle.
isValid())
continue;
183 for(
unsigned int t=0;
t<trackCollectionHandle->size();
t++){
189 if( track->pt() >= 5.0 && track->numberOfValidHits()>
TrackHitMin){
191 dEdxMEsVector[
i].ME_MipDeDxNHits ->Fill(dEdxColl[track].numberOfMeasurements());
192 if (dEdxColl[track].numberOfMeasurements()!=0)
193 dEdxMEsVector[
i].ME_MipDeDxNSatHits->Fill((1.0*dEdxColl[track].numberOfSaturatedMeasurements())/dEdxColl[track].numberOfMeasurements());
199 dEdxMEsVector[
i].ME_MipHighPtDeDxNHits ->Fill(dEdxColl[track].numberOfMeasurements());
T getParameter(std::string const &) const
edm::EDGetTokenT< reco::TrackCollection > trackToken_
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...
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)
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")
GenericTriggerEventFlag * genTriggerEventFlag_
const std::complex< double > I
edm::InputTag trackInputTag_
std::vector< dEdxMEs > dEdxMEsVector
double mass(double P, double I)
void showDirStructure() const
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 initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup) override