30 , fullconf_( iConfig )
31 , conf_ (fullconf_.getParameter<edm::
ParameterSet>(
"dEdxParameters") )
32 , doAllPlots_ ( conf_.getParameter<bool>(
"doAllPlots") )
33 , doDeDxPlots_ ( conf_.getParameter<bool>(
"doDeDxPlots") )
50 if(outputMEsInRootFile)
110 dEdxMEsVector[
i].ME_MipDeDx->setAxisTitle(
"dEdx of each MIP Track (MeV/cm)");
113 histname =
"MIP_NumberOfdEdxHitsPerTrack_";
115 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of dEdxHits of each MIP Track");
116 dEdxMEsVector[
i].ME_MipDeDxNHits->setAxisTitle(
"Number of Tracks", 2);
118 histname =
"MIP_FractionOfSaturateddEdxHitsPerTrack_";
120 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Fraction of Saturated dEdxHits of each MIP Track");
121 dEdxMEsVector[
i].ME_MipDeDxNSatHits->setAxisTitle(
"Number of Tracks", 2);
125 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"dEdx Mass of each MIP Track (GeV/c^{2})");
126 dEdxMEsVector[
i].ME_MipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
130 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"dEdx Mass of each HIP Track (GeV/c^{2})");
131 dEdxMEsVector[
i].ME_HipDeDxMass->setAxisTitle(
"Number of Tracks", 2);
139 if(I-
dEdxC<0)
return -1;
155 if(!trackCollectionHandle.
isValid())
return;
161 if(!dEdxObjectHandle.
isValid())
continue;
165 for(
unsigned int t=0;
t<trackCollectionHandle->size();
t++){
171 if( track->pt() >= 5.0 && track->numberOfValidHits()>
TrackHitMin){
173 dEdxMEsVector[
i].ME_MipDeDxNHits ->Fill(dEdxColl[track].numberOfMeasurements());
174 if (dEdxColl[track].numberOfMeasurements()!=0)
175 dEdxMEsVector[
i].ME_MipDeDxNSatHits->Fill((1.0*dEdxColl[track].numberOfSaturatedMeasurements())/dEdxColl[track].numberOfMeasurements());
179 }
else if(track->pt()<2 && dEdxColl[track].dEdx()>
HIPdEdxMin){
T getParameter(std::string const &) const
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::vector< std::string > AlgoNames
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
dEdxAnalyzer(const edm::ParameterSet &)
void addDefault(ParameterSetDescription const &psetDescription)
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
GenericTriggerEventFlag * genTriggerEventFlag_
const std::complex< double > I
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
std::vector< dEdxMEs > dEdxMEsVector
double mass(double P, double I)
edm::Ref< TrackCollection > TrackRef
persistent reference to a Track
T const * product() const
virtual void analyze(const edm::Event &iEvent, const edm::EventSetup &iSetup)
void showDirStructure(void) const
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
void setCurrentFolder(const std::string &fullpath)
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)