44 if(theDataType !=
"RealData" && theDataType !=
"SimData")
45 edm::LogInfo (
"PhysicsObjectsMonitor") <<
"Error in Data Type!!"<<endl;
64 dbe->setCurrentFolder(
"PhysicsObjects/MuonReconstruction");
67 hPres = dbe->book1D(
"pTRes",
"pT Resolution",100,-2,2);
68 h1_Pres =dbe->book1D(
"invPTRes",
"1/pT Resolution",100,-2,2);
70 charge= dbe->book1D(
"charge",
"track charge",5,-2.5,2.5);
71 ptot = dbe->book1D(
"ptot",
"track momentum",50,0,50);
72 pt = dbe->book1D(
"pt",
"track pT",100,0,50);
73 px = dbe->book1D(
"px ",
"track px",100,-50,50);
74 py = dbe->book1D(
"py",
"track py",100,-50,50);
75 pz = dbe->book1D(
"pz",
"track pz",100,-50,50);
76 Nmuon = dbe->book1D(
"Nmuon",
"Number of muon tracks",11,-.5,10.5);
77 Nrechits = dbe->book1D(
"Nrechits",
"Number of RecHits/Segments on track",21,-.5,21.5);
78 NDThits = dbe->book1D(
"NDThits",
"Number of DT Hits/Segments on track",31,-.5,31.5);
79 NCSChits = dbe->book1D(
"NCSChits",
"Number of CSC Hits/Segments on track",31,-.5,31.5);
80 NRPChits = dbe->book1D(
"NRPChits",
"Number of RPC hits on track",11,-.5,11.5);
82 DTvsCSC = dbe->book2D(
"DTvsCSC",
"Number of DT vs CSC hits on track",29,-.5,28.5,29,-.5,28.5);
83 TH2F * root_ob = DTvsCSC->getTH2F();
84 root_ob->SetXTitle(
"Number of DT hits");
85 root_ob->SetYTitle(
"Number of CSC hits");
91 if(theDataType ==
"SimData"){
93 edm::LogInfo (
"PhysicsObjectsMonitor") <<
"Sorry! Running this package on simulation is no longer supported! ";
96 edm::LogInfo (
"PhysicsObjectsMonitor") <<
"Number of Reco tracks: " << numberOfRecTracks ;
98 if(saveRootFile) dbe->save(theRootFileName);
99 dbe->setCurrentFolder(
"PhysicsObjects/MuonReconstruction");
100 dbe->removeContents();
108 edm::LogInfo (
"PhysicsObjectsMonitor") <<
"Run: " <<
event.id().run() <<
" Event: " <<
event.id().event();
113 event.getByLabel(theSTAMuonLabel, staTracks);
143 reco::TrackCollection::const_iterator staTrack;
145 edm::LogInfo (
"PhysicsObjectsMonitor") <<
"Reconstructed tracks: " << staTracks->size() << endl;
146 Nmuon->Fill(staTracks->size());
147 for (staTrack = staTracks->begin(); staTrack != staTracks->end(); ++staTrack){
156 if ((*it)->isValid ()) {
157 edm::LogInfo (
"PhysicsObjectsMonitor") <<
"Analyzer: Aha this looks like a Rechit!" << std::endl;
165 edm::LogInfo (
"PhysicsObjectsMonitor") <<
"This is an UNKNOWN hit !! " << std::endl;
171 Nrechits->Fill(nrechits);
172 NDThits->Fill(nDThits);
173 NCSChits->Fill(nCSChits);
174 DTvsCSC->Fill(nDThits,nCSChits);
175 NRPChits->Fill(nRPChits);
189 if(recPt && theDataType ==
"SimData"){
190 hPres->Fill( (recPt-simPt)/simPt);
191 h1_Pres->Fill( ( 1/recPt - 1/simPt)/ (1/simPt));
T getUntrackedParameter(std::string const &, T const &) const
TrajectoryStateClosestToPoint impactPointTSCP() const
const FreeTrajectoryState & theState() const
#define DEFINE_FWK_MODULE(type)
PhysicsObjectsMonitor(const edm::ParameterSet &pset)
Constructor.
TrackCharge charge() const
std::string dumpFTS(const FreeTrajectoryState &fts) const
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
virtual ~PhysicsObjectsMonitor()
Destructor.
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
trackingRecHit_iterator recHitsEnd() const
last iterator to RecHits
trackingRecHit_iterator recHitsBegin() const
first iterator to RecHits
GlobalVector momentum() const