CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Member Functions | Private Attributes
SiStripGainFromCalibTree Class Reference
Inheritance diagram for SiStripGainFromCalibTree:
ConditionDBWriter< SiStripApvGain > edm::EDAnalyzer

Classes

class  isEqual
 

Public Member Functions

 SiStripGainFromCalibTree (const edm::ParameterSet &)
 
 ~SiStripGainFromCalibTree ()
 
- Public Member Functions inherited from ConditionDBWriter< SiStripApvGain >
 ConditionDBWriter (const edm::ParameterSet &iConfig)
 
virtual ~ConditionDBWriter ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Private Member Functions

virtual void algoAnalyze (const edm::Event &, const edm::EventSetup &)
 
void algoAnalyzeTheTree ()
 
virtual void algoBeginJob (const edm::EventSetup &)
 
void algoComputeMPVandGain ()
 
virtual void algoEndJob ()
 
SiStripApvGaingetNewObject ()
 
void getPeakOfLandau (TH1 *InputHisto, double *FitResults, double LowRange=50, double HighRange=5400)
 
bool IsGoodLandauFit (double *FitResults)
 
void MakeCalibrationMap ()
 
void storeOnTree ()
 

Private Attributes

bool AllowSaturation
 
__gnu_cxx::hash_map< unsigned
int, stAPVGain
*, __gnu_cxx::hash< unsigned
int >, isEqual
APVsColl
 
std::vector< stAPVGain * > APVsCollOrdered
 
unsigned int BAD
 
int CalibrationLevel
 
TH2F * Charge_Vs_Index
 
TH2F * Charge_Vs_Index_Absolute
 
TH2F * Charge_Vs_PathlengthTECM1
 
TH2F * Charge_Vs_PathlengthTECM2
 
TH2F * Charge_Vs_PathlengthTECP1
 
TH2F * Charge_Vs_PathlengthTECP2
 
TH2F * Charge_Vs_PathlengthTIB
 
TH2F * Charge_Vs_PathlengthTIDM
 
TH2F * Charge_Vs_PathlengthTIDP
 
TH2F * Charge_Vs_PathlengthTOB
 
unsigned int ERun
 
bool FirstSetOfConstants
 
unsigned int GOOD
 
string m_calibrationPath
 
double MaxChi2OverNDF
 
double MaxMPVError
 
unsigned int MaxNrStrips
 
double MaxTrackChiOverNdf
 
double MaxTrackEta
 
double MaxTrackMomentum
 
double MinNrEntries
 
double MinTrackEta
 
unsigned int MinTrackHits
 
double MinTrackMomentum
 
unsigned int NCluster
 
unsigned int NEvent
 
unsigned int NTrack
 
bool OldGainRemoving
 
std::string OutputGains
 
unsigned int SRun
 
edm::Service< TFileServicetfs
 
bool useCalibration
 
bool Validation
 
vector< string > VInputFiles
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from ConditionDBWriter< SiStripApvGain >
void setDoStore (const bool doStore)
 When set to false the payload will not be written to the db. More...
 
void storeOnDbNow ()
 
cond::Time_t timeOfLastIOV ()
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Detailed Description

Definition at line 115 of file SiStripGainFromCalibTree.cc.

Constructor & Destructor Documentation

SiStripGainFromCalibTree::SiStripGainFromCalibTree ( const edm::ParameterSet iConfig)
explicit

Definition at line 190 of file SiStripGainFromCalibTree.cc.

References AllowSaturation, CalibrationLevel, FirstSetOfConstants, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), m_calibrationPath, MaxChi2OverNDF, MaxMPVError, MaxNrStrips, MaxTrackChiOverNdf, MaxTrackEta, MaxTrackMomentum, MinNrEntries, MinTrackEta, MinTrackHits, MinTrackMomentum, OldGainRemoving, OutputGains, useCalibration, Validation, and VInputFiles.

191 {
192  OutputGains = iConfig.getParameter<std::string>("OutputGains");
193 
194  MinNrEntries = iConfig.getUntrackedParameter<double> ("minNrEntries" , 20);
195  MaxMPVError = iConfig.getUntrackedParameter<double> ("maxMPVError" , 500.0);
196  MaxChi2OverNDF = iConfig.getUntrackedParameter<double> ("maxChi2OverNDF" , 5.0);
197  MinTrackMomentum = iConfig.getUntrackedParameter<double> ("minTrackMomentum" , 3.0);
198  MaxTrackMomentum = iConfig.getUntrackedParameter<double> ("maxTrackMomentum" , 99999.0);
199  MinTrackEta = iConfig.getUntrackedParameter<double> ("minTrackEta" , -5.0);
200  MaxTrackEta = iConfig.getUntrackedParameter<double> ("maxTrackEta" , 5.0);
201  MaxNrStrips = iConfig.getUntrackedParameter<unsigned>("maxNrStrips" , 2);
202  MinTrackHits = iConfig.getUntrackedParameter<unsigned>("MinTrackHits" , 8);
203  MaxTrackChiOverNdf = iConfig.getUntrackedParameter<double> ("MaxTrackChiOverNdf" , 3);
204  AllowSaturation = iConfig.getUntrackedParameter<bool> ("AllowSaturation" , false);
205  FirstSetOfConstants = iConfig.getUntrackedParameter<bool> ("FirstSetOfConstants", true);
206  Validation = iConfig.getUntrackedParameter<bool> ("Validation" , false);
207  OldGainRemoving = iConfig.getUntrackedParameter<bool> ("OldGainRemoving" , false);
208 
209  CalibrationLevel = iConfig.getUntrackedParameter<int> ("CalibrationLevel" , 0);
210  VInputFiles = iConfig.getParameter<vector<string> > ("InputFiles");
211 
212 
213  useCalibration = iConfig.getUntrackedParameter<bool>("UseCalibration", false);
214  m_calibrationPath = iConfig.getUntrackedParameter<string>("calibrationPath");
215 
216 
217 }
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
SiStripGainFromCalibTree::~SiStripGainFromCalibTree ( )

Definition at line 699 of file SiStripGainFromCalibTree.cc.

700 {
701 }

Member Function Documentation

void SiStripGainFromCalibTree::algoAnalyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from ConditionDBWriter< SiStripApvGain >.

Definition at line 321 of file SiStripGainFromCalibTree.cc.

322 {
323 }
void SiStripGainFromCalibTree::algoAnalyzeTheTree ( )
private

Definition at line 363 of file SiStripGainFromCalibTree.cc.

References AllowSaturation, sistrip::APV, APVsColl, stAPVGain::CalibGain, DeDxDiscriminatorTools::charge(), Charge_Vs_Index, Charge_Vs_Index_Absolute, Charge_Vs_PathlengthTECM1, Charge_Vs_PathlengthTECM2, Charge_Vs_PathlengthTECP1, Charge_Vs_PathlengthTECP2, Charge_Vs_PathlengthTIB, Charge_Vs_PathlengthTIDM, Charge_Vs_PathlengthTIDP, Charge_Vs_PathlengthTOB, ERun, stAPVGain::Eta, funct::false, FirstSetOfConstants, i, stAPVGain::Index, MaxNrStrips, MaxTrackChiOverNdf, MaxTrackEta, MaxTrackMomentum, MinTrackEta, MinTrackHits, MinTrackMomentum, NCluster, NEvent, NTrack, NULL, OldGainRemoving, path(), stAPVGain::PreviousGain, cond::runnumber, asciidump::s, SRun, stAPVGain::SubDet, StripSubdetector::TEC, stAPVGain::Thickness, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, diffTreeTool::tree, funct::true, useCalibration, Validation, and VInputFiles.

Referenced by algoBeginJob().

364 {
365  for(unsigned int i=0;i<VInputFiles.size();i++){
366  printf("Openning file %3i/%3i --> %s\n",i+1, (int)VInputFiles.size(), (char*)(VInputFiles[i].c_str())); fflush(stdout);
367  TChain* tree = new TChain("gainCalibrationTree/tree");
368  tree->Add(VInputFiles[i].c_str());
369 
370  TString EventPrefix("");
371  TString EventSuffix("");
372 
373  TString TrackPrefix("track");
374  TString TrackSuffix("");
375 
376  TString CalibPrefix("GainCalibration");
377  TString CalibSuffix("");
378 
379  unsigned int eventnumber = 0; tree->SetBranchAddress(EventPrefix + "event" + EventSuffix, &eventnumber , NULL);
380  unsigned int runnumber = 0; tree->SetBranchAddress(EventPrefix + "run" + EventSuffix, &runnumber , NULL);
381  std::vector<bool>* TrigTech = 0; tree->SetBranchAddress(EventPrefix + "TrigTech" + EventSuffix, &TrigTech , NULL);
382 
383  std::vector<double>* trackchi2ndof = 0; tree->SetBranchAddress(TrackPrefix + "chi2ndof" + TrackSuffix, &trackchi2ndof , NULL);
384  std::vector<float>* trackp = 0; tree->SetBranchAddress(TrackPrefix + "momentum" + TrackSuffix, &trackp , NULL);
385  std::vector<float>* trackpt = 0; tree->SetBranchAddress(TrackPrefix + "pt" + TrackSuffix, &trackpt , NULL);
386  std::vector<double>* tracketa = 0; tree->SetBranchAddress(TrackPrefix + "eta" + TrackSuffix, &tracketa , NULL);
387  std::vector<double>* trackphi = 0; tree->SetBranchAddress(TrackPrefix + "phi" + TrackSuffix, &trackphi , NULL);
388  std::vector<unsigned int>* trackhitsvalid = 0; tree->SetBranchAddress(TrackPrefix + "hitsvalid" + TrackSuffix, &trackhitsvalid, NULL);
389 
390  std::vector<int>* trackindex = 0; tree->SetBranchAddress(CalibPrefix + "trackindex" + CalibSuffix, &trackindex , NULL);
391  std::vector<unsigned int>* rawid = 0; tree->SetBranchAddress(CalibPrefix + "rawid" + CalibSuffix, &rawid , NULL);
392  std::vector<float>* localdirx = 0; tree->SetBranchAddress(CalibPrefix + "localdirx" + CalibSuffix, &localdirx , NULL);
393  std::vector<float>* localdiry = 0; tree->SetBranchAddress(CalibPrefix + "localdiry" + CalibSuffix, &localdiry , NULL);
394  std::vector<float>* localdirz = 0; tree->SetBranchAddress(CalibPrefix + "localdirz" + CalibSuffix, &localdirz , NULL);
395  std::vector<unsigned short>* firststrip = 0; tree->SetBranchAddress(CalibPrefix + "firststrip" + CalibSuffix, &firststrip , NULL);
396  std::vector<unsigned short>* nstrips = 0; tree->SetBranchAddress(CalibPrefix + "nstrips" + CalibSuffix, &nstrips , NULL);
397  std::vector<bool>* saturation = 0; tree->SetBranchAddress(CalibPrefix + "saturation" + CalibSuffix, &saturation , NULL);
398  std::vector<bool>* overlapping = 0; tree->SetBranchAddress(CalibPrefix + "overlapping" + CalibSuffix, &overlapping , NULL);
399  std::vector<bool>* farfromedge = 0; tree->SetBranchAddress(CalibPrefix + "farfromedge" + CalibSuffix, &farfromedge , NULL);
400  std::vector<unsigned int>* charge = 0; tree->SetBranchAddress(CalibPrefix + "charge" + CalibSuffix, &charge , NULL);
401  std::vector<float>* path = 0; tree->SetBranchAddress(CalibPrefix + "path" + CalibSuffix, &path , NULL);
402  std::vector<float>* chargeoverpath = 0; tree->SetBranchAddress(CalibPrefix + "chargeoverpath" + CalibSuffix, &chargeoverpath, NULL);
403  std::vector<unsigned char>* amplitude = 0; tree->SetBranchAddress(CalibPrefix + "amplitude" + CalibSuffix, &amplitude , NULL);
404  std::vector<double>* gainused = 0; tree->SetBranchAddress(CalibPrefix + "gainused" + CalibSuffix, &gainused , NULL);
405 
406 
407  printf("Number of Events = %i + %i = %i\n",NEvent,(unsigned int)tree->GetEntries(),(unsigned int)(NEvent+tree->GetEntries()));
408  printf("Progressing Bar :0%% 20%% 40%% 60%% 80%% 100%%\n");
409  printf("Looping on the Tree :");
410  int TreeStep = tree->GetEntries()/50;if(TreeStep<=1)TreeStep=1;
411  for (unsigned int ientry = 0; ientry < tree->GetEntries(); ientry++) {
412 // for (unsigned int ientry = 0; ientry < tree->GetEntries() && ientry<50000; ientry++) {
413  if(ientry%TreeStep==0){printf(".");fflush(stdout);}
414  tree->GetEntry(ientry);
415 
416  if(runnumber<SRun)SRun=runnumber;
417  if(runnumber>ERun)ERun=runnumber;
418 
419  NEvent++;
420  NTrack+=(*trackp).size();
421 
422  unsigned int FirstAmplitude=0;
423  for(unsigned int i=0;i<(*chargeoverpath).size();i++){
424  FirstAmplitude+=(*nstrips)[i];
425  int TI = (*trackindex)[i];
426  if((*tracketa )[TI] < MinTrackEta )continue;
427  if((*tracketa )[TI] > MaxTrackEta )continue;
428  if((*trackp )[TI] < MinTrackMomentum )continue;
429  if((*trackp )[TI] > MaxTrackMomentum )continue;
430  if((*trackhitsvalid)[TI] < MinTrackHits )continue;
431  if((*trackchi2ndof )[TI] > MaxTrackChiOverNdf )continue;
432  if((*farfromedge)[i] == false )continue;
433  if((*overlapping)[i] == true )continue;
434  if((*saturation )[i] && !AllowSaturation)continue;
435  if((*nstrips )[i] > MaxNrStrips )continue;
436  NCluster++;
437 
438  stAPVGain* APV = APVsColl[((*rawid)[i]<<3) | ((*firststrip)[i]/128)];
439 
440 // printf("detId=%7i run=%7i event=%9i charge=%5i cs=%3i\n",(*rawid)[i],runnumber,eventnumber,(*charge)[i],(*nstrips)[i]);
441 
442 
443 
444  //double trans = atan2((*localdiry)[i],(*localdirx)[i])*(180/3.14159265);
445  //double alpha = acos ((*localdirx)[i] / sqrt( pow((*localdirx)[i],2) + pow((*localdirz)[i],2) ) ) * (180/3.14159265);
446  //double beta = acos ((*localdiry)[i] / sqrt( pow((*localdirx)[i],2) + pow((*localdirz)[i],2) ) ) * (180/3.14159265);
447 
448  //printf("NStrip = %i : Charge = %i --> Path = %f --> ChargeOverPath=%f\n",(*nstrips)[i],(*charge)[i],(*path)[i],(*chargeoverpath)[i]);
449  //printf("Amplitudes: ");
450  //for(unsigned int a=0;a<(*nstrips)[i];a++){printf("%i ",(*amplitude)[FirstAmplitude+a]);}
451  //printf("\n");
452 
453 
454  int Charge = 0;
456  bool Saturation = false;
457  for(unsigned int s=0;s<(*nstrips)[i];s++){
458  int StripCharge = (*amplitude)[FirstAmplitude-(*nstrips)[i]+s];
459  if(useCalibration && !FirstSetOfConstants){ StripCharge=(int)(StripCharge*(APV->PreviousGain/APV->CalibGain));
460  }else if(useCalibration){ StripCharge=(int)(StripCharge/APV->CalibGain);
461  }else if(!FirstSetOfConstants){ StripCharge=(int)(StripCharge*APV->PreviousGain);}
462  if(StripCharge>1024){
463  StripCharge = 255;
464  Saturation = true;
465  }else if(StripCharge>254){
466  StripCharge = 254;
467  Saturation = true;
468  }
469  Charge += StripCharge;
470  }
471  if(Saturation && !AllowSaturation)continue;
472  }else{
473  Charge = (*charge)[i];
474  }
475 
476  //printf("ChargeDifference = %i Vs %i with Gain = %f\n",(*charge)[i],Charge,APV->CalibGain);
477 
478  double ClusterChargeOverPath = ( (double) Charge )/(*path)[i] ;
479  if(Validation) {ClusterChargeOverPath/=(*gainused)[i];}
480  if(OldGainRemoving){ClusterChargeOverPath*=(*gainused)[i];}
481  Charge_Vs_Index_Absolute->Fill(APV->Index,Charge);
482  Charge_Vs_Index ->Fill(APV->Index,ClusterChargeOverPath);
483 
484 
485  if(APV->SubDet==StripSubdetector::TIB){ Charge_Vs_PathlengthTIB ->Fill((*path)[i],Charge);
486  }else if(APV->SubDet==StripSubdetector::TOB){ Charge_Vs_PathlengthTOB ->Fill((*path)[i],Charge);
487  }else if(APV->SubDet==StripSubdetector::TID){
488  if(APV->Eta<0){ Charge_Vs_PathlengthTIDM ->Fill((*path)[i],Charge);
489  }else if(APV->Eta>0){ Charge_Vs_PathlengthTIDP ->Fill((*path)[i],Charge);
490  }
491  }else if(APV->SubDet==StripSubdetector::TEC){
492  if(APV->Eta<0){
493  if(APV->Thickness<0.04){ Charge_Vs_PathlengthTECM1->Fill((*path)[i],Charge);
494  }else if(APV->Thickness>0.04){ Charge_Vs_PathlengthTECM2->Fill((*path)[i],Charge);
495  }
496  }else if(APV->Eta>0){
497  if(APV->Thickness<0.04){ Charge_Vs_PathlengthTECP1->Fill((*path)[i],Charge);
498  }else if(APV->Thickness>0.04){ Charge_Vs_PathlengthTECP2->Fill((*path)[i],Charge);
499  }
500  }
501  }
502 
503  }// END OF ON-CLUSTER LOOP
504  }printf("\n");// END OF EVENT LOOP
505 
506  }
507 }
int i
Definition: DBlmapReader.cc:9
#define NULL
Definition: scimark2.h:8
double charge(const std::vector< uint8_t > &Ampls)
int path() const
Definition: HLTadd.h:3
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
string s
Definition: asciidump.py:422
void SiStripGainFromCalibTree::algoBeginJob ( const edm::EventSetup iSetup)
privatevirtual

Reimplemented from ConditionDBWriter< SiStripApvGain >.

Definition at line 223 of file SiStripGainFromCalibTree.cc.

References algoAnalyzeTheTree(), algoComputeMPVandGain(), sistrip::APV, stAPVGain::APVId, APVsColl, APVsCollOrdered, BAD, PV3DBase< T, PVType, FrameType >::basicVector(), stAPVGain::Bin, BoundSurface::bounds(), Charge_Vs_Index, Charge_Vs_Index_Absolute, Charge_Vs_PathlengthTECM1, Charge_Vs_PathlengthTECM2, Charge_Vs_PathlengthTECP1, Charge_Vs_PathlengthTECP2, Charge_Vs_PathlengthTIB, Charge_Vs_PathlengthTIDM, Charge_Vs_PathlengthTIDP, Charge_Vs_PathlengthTOB, stAPVGain::DetId, ERun, stAPVGain::Eta, Basic3DVector< T >::eta(), cmsRelvalreport::exit, FirstSetOfConstants, stAPVGain::FitChi2, stAPVGain::FitMPV, stAPVGain::FitMPVErr, stAPVGain::FitWidth, stAPVGain::FitWidthErr, stAPVGain::Gain, edm::EventSetup::get(), GOOD, i, stAPVGain::Index, stAPVGain::isMasked, edm::ESHandleBase::isValid(), j, TFileDirectory::make(), MakeCalibrationMap(), NCluster, stAPVGain::NEntries, NEvent, StripTopology::nstrips(), NTrack, stAPVGain::Phi, Basic3DVector< T >::phi(), GeomDet::position(), stAPVGain::PreviousGain, stAPVGain::R, DetId::rawId(), StripGeomDetUnit::specificTopology(), SRun, stAPVGain::SubDet, DetId::subdetId(), GeomDet::surface(), StripSubdetector::TEC, tfs, Bounds::thickness(), stAPVGain::Thickness, StripSubdetector::TIB, StripSubdetector::TID, StripSubdetector::TOB, Basic3DVector< T >::transverse(), Basic3DVector< T >::x(), stAPVGain::x, Basic3DVector< T >::y(), stAPVGain::y, Basic3DVector< T >::z(), and stAPVGain::z.

224 {
225  Charge_Vs_Index = tfs->make<TH2F>("Charge_Vs_Index" , "Charge_Vs_Index" , 72785, 0 , 72784,1000,0,2000);
226  Charge_Vs_Index_Absolute = tfs->make<TH2F>("Charge_Vs_Index_Absolute" , "Charge_Vs_Index_Absolute" , 72785, 0 , 72784, 500,0,2000);
227  Charge_Vs_PathlengthTIB = tfs->make<TH2F>("Charge_Vs_PathlengthTIB" , "Charge_Vs_PathlengthTIB" , 20 , 0.3 , 1.3 , 250,0,2000);
228  Charge_Vs_PathlengthTOB = tfs->make<TH2F>("Charge_Vs_PathlengthTOB" , "Charge_Vs_PathlengthTOB" , 20 , 0.3 , 1.3 , 250,0,2000);
229  Charge_Vs_PathlengthTIDP = tfs->make<TH2F>("Charge_Vs_PathlengthTIDP" , "Charge_Vs_PathlengthTIDP" , 20 , 0.3 , 1.3 , 250,0,2000);
230  Charge_Vs_PathlengthTIDM = tfs->make<TH2F>("Charge_Vs_PathlengthTIDM" , "Charge_Vs_PathlengthTIDM" , 20 , 0.3 , 1.3 , 250,0,2000);
231  Charge_Vs_PathlengthTECP1 = tfs->make<TH2F>("Charge_Vs_PathlengthTECP1", "Charge_Vs_PathlengthTECP1", 20 , 0.3 , 1.3 , 250,0,2000);
232  Charge_Vs_PathlengthTECP2 = tfs->make<TH2F>("Charge_Vs_PathlengthTECP2", "Charge_Vs_PathlengthTECP2", 20 , 0.3 , 1.3 , 250,0,2000);
233  Charge_Vs_PathlengthTECM1 = tfs->make<TH2F>("Charge_Vs_PathlengthTECM1", "Charge_Vs_PathlengthTECM1", 20 , 0.3 , 1.3 , 250,0,2000);
234  Charge_Vs_PathlengthTECM2 = tfs->make<TH2F>("Charge_Vs_PathlengthTECM2", "Charge_Vs_PathlengthTECM2", 20 , 0.3 , 1.3 , 250,0,2000);
235 
237  iSetup.get<TrackerDigiGeometryRecord>().get( tkGeom );
238  vector<GeomDet*> Det = tkGeom->dets();
239 
240  edm::ESHandle<SiStripGain> gainHandle;
241  iSetup.get<SiStripGainRcd>().get(gainHandle);
242  if(!gainHandle.isValid()){printf("\n#####################\n\nERROR --> gainHandle is not valid\n\n#####################\n\n");exit(0);}
243 
244 // size_t numberOfTag = gainHandle->getNumberOfTags();
245  for(unsigned int i=0;i<gainHandle->getNumberOfTags();i++){
246  printf("Reccord %i --> Rcd Name = %s Label Name = %s\n",i,gainHandle->getRcdName(i).c_str(), gainHandle->getLabelName(i).c_str());
247  }
248 
249 
250  edm::ESHandle<SiStripQuality> SiStripQuality_;
251  iSetup.get<SiStripQualityRcd>().get(SiStripQuality_);
252 
253 
254  unsigned int Index=0;
255  for(unsigned int i=0;i<Det.size();i++){
256  DetId Detid = Det[i]->geographicalId();
257  int SubDet = Detid.subdetId();
258 
259  if( SubDet == StripSubdetector::TIB || SubDet == StripSubdetector::TID ||
260  SubDet == StripSubdetector::TOB || SubDet == StripSubdetector::TEC ){
261 
262  StripGeomDetUnit* DetUnit = dynamic_cast<StripGeomDetUnit*> (Det[i]);
263  if(!DetUnit)continue;
264 
265  const StripTopology& Topo = DetUnit->specificTopology();
266  unsigned int NAPV = Topo.nstrips()/128;
267  for(unsigned int j=0;j<NAPV;j++){
268  stAPVGain* APV = new stAPVGain;
269  APV->Index = Index;
270  APV->Bin = Charge_Vs_Index->GetXaxis()->FindBin(APV->Index);
271  APV->DetId = Detid.rawId();
272  APV->APVId = j;
273  APV->SubDet = SubDet;
274  APV->FitMPV = -1;
275  APV->FitMPVErr = -1;
276  APV->FitWidth = -1;
277  APV->FitWidthErr = -1;
278  APV->FitChi2 = -1;
279  APV->Gain = -1;
280  APV->PreviousGain = 1;
281  APV->x = DetUnit->position().basicVector().x();
282  APV->y = DetUnit->position().basicVector().y();
283  APV->z = DetUnit->position().basicVector().z();
284  APV->Eta = DetUnit->position().basicVector().eta();
285  APV->Phi = DetUnit->position().basicVector().phi();
286  APV->R = DetUnit->position().basicVector().transverse();
287  APV->Thickness = DetUnit->surface().bounds().thickness();
288  APV->NEntries = 0;
289  APV->isMasked = SiStripQuality_->IsApvBad(Detid.rawId(),j);
290 
291  if(!FirstSetOfConstants){
292  if(gainHandle->getNumberOfTags()!=2){printf("ERROR: NUMBER OF GAIN TAG IS EXPECTED TO BE 2\n");fflush(stdout);exit(0);};
293  APV->PreviousGain = gainHandle->getApvGain(APV->APVId,gainHandle->getRange(APV->DetId, 1),1);
294  printf("DETID = %7i APVID=%1i Previous Gain=%8.4f\n",APV->DetId,APV->APVId,APV->PreviousGain);
295  }
296 
297  APVsCollOrdered.push_back(APV);
298  APVsColl[(APV->DetId<<3) | APV->APVId] = APV;
299  Index++;
300  }
301  }
302  }
303 
305 
306 
307  NEvent = 0;
308  NTrack = 0;
309  NCluster = 0;
310  SRun = 1<<31;
311  ERun = 0;
312  GOOD = 0;
313  BAD = 0;
314 
317 }
virtual int nstrips() const =0
int i
Definition: DBlmapReader.cc:9
T y() const
Cartesian y coordinate.
edm::Service< TFileService > tfs
T x() const
Cartesian x coordinate.
Geom::Phi< T > phi() const
virtual const StripTopology & specificTopology() const
Returns a reference to the strip proxy topology.
uint32_t rawId() const
get the raw id
Definition: DetId.h:45
virtual float thickness() const =0
std::vector< stAPVGain * > APVsCollOrdered
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
const Surface::PositionType & position() const
The position (origin of the R.F.)
Definition: GeomDet.h:43
T z() const
Cartesian z coordinate.
int j
Definition: DBlmapReader.cc:9
int subdetId() const
get the contents of the subdetector field (not cast into any detector&#39;s numbering enum) ...
Definition: DetId.h:39
Definition: DetId.h:20
const Bounds & bounds() const
Definition: BoundSurface.h:89
const T & get() const
Definition: EventSetup.h:55
T transverse() const
Another name for perp()
T * make() const
make new ROOT object
bool isValid() const
Definition: ESHandle.h:37
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:54
virtual const BoundPlane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
void SiStripGainFromCalibTree::algoComputeMPVandGain ( )
private

Definition at line 511 of file SiStripGainFromCalibTree.cc.

References sistrip::APV, stAPVGain::APVId, APVsColl, BAD, stAPVGain::Bin, CalibrationLevel, Charge_Vs_Index, stAPVGain::DetId, stAPVGain::FitChi2, stAPVGain::FitMPV, stAPVGain::FitMPVErr, stAPVGain::FitWidth, stAPVGain::FitWidthErr, stAPVGain::Gain, getPeakOfLandau(), GOOD, Exhume::I, i, stAPVGain::NEntries, NULL, and storeOnTree().

Referenced by algoBeginJob().

511  {
512  unsigned int I=0;
513  TH1D* Proj = NULL;
514  double FitResults[5];
515  double MPVmean = 300;
516 
517  printf("Progressing Bar :0%% 20%% 40%% 60%% 80%% 100%%\n");
518  printf("Fitting Charge Distribution :");
519  int TreeStep = APVsColl.size()/50;
520  for(__gnu_cxx::hash_map<unsigned int, stAPVGain*, __gnu_cxx::hash<unsigned int>, isEqual >::iterator it = APVsColl.begin();it!=APVsColl.end();it++,I++){
521  if(I%TreeStep==0){printf(".");fflush(stdout);}
522  //if(I>1000)break;
523  stAPVGain* APV = it->second;
524 
525  Proj = (TH1D*)(Charge_Vs_Index->ProjectionY("",APV->Bin,APV->Bin,"e"));
526  if(!Proj)continue;
527 
528  if(CalibrationLevel==0){
529  }else if(CalibrationLevel==1){
530  int SecondAPVId = APV->APVId;
531  if(SecondAPVId%2==0){ SecondAPVId = SecondAPVId+1; }else{ SecondAPVId = SecondAPVId-1; }
532  stAPVGain* APV2 = APVsColl[(APV->DetId<<3) | SecondAPVId];
533  TH1D* Proj2 = (TH1D*)(Charge_Vs_Index->ProjectionY("",APV2->Bin,APV2->Bin,"e"));
534  if(Proj2){Proj->Add(Proj2,1);delete Proj2;}
535  }else if(CalibrationLevel==2){
536  for(unsigned int i=0;i<6;i++){
537  __gnu_cxx::hash_map<unsigned int, stAPVGain*, __gnu_cxx::hash<unsigned int>, isEqual >::iterator tmpit;
538  tmpit = APVsColl.find((APV->DetId<<3) | i);
539  if(tmpit==APVsColl.end())continue;
540  stAPVGain* APV2 = tmpit->second;
541  if(APV2->DetId != APV->DetId || APV2->APVId == APV->APVId)continue;
542  TH1D* Proj2 = (TH1D*)(Charge_Vs_Index->ProjectionY("",APV2->Bin,APV2->Bin,"e"));
543 // if(Proj2 && APV->DetId==369171124)printf("B) DetId %6i APVId %1i --> NEntries = %f\n",APV2->DetId, APV2->APVId, Proj2->GetEntries());
544  if(Proj2){Proj->Add(Proj2,1);delete Proj2;}
545  }
546  }else{
547  CalibrationLevel = 0;
548  printf("Unknown Calibration Level, will assume %i\n",CalibrationLevel);
549  }
550 
551  getPeakOfLandau(Proj,FitResults);
552  APV->FitMPV = FitResults[0];
553  APV->FitMPVErr = FitResults[1];
554  APV->FitWidth = FitResults[2];
555  APV->FitWidthErr = FitResults[3];
556  APV->FitChi2 = FitResults[4];
557  APV->NEntries = Proj->GetEntries();
558 
559  if(APV->FitMPV>0){
560  APV->Gain = APV->FitMPV / MPVmean;
561  GOOD++;
562  }else{
563  APV->Gain = 1;
564  BAD++;
565  }
566  if(APV->Gain<=0) APV->Gain = 1;
567 // if(!FirstSetOfConstants) APV->Gain *= APV->PreviousGain;
568 
569 
570  //printf("%5i/%5i: %6i - %1i %5E Entries --> MPV = %f +- %f\n",I,APVsColl.size(),APV->DetId, APV->APVId, Proj->GetEntries(), FitResults[0], FitResults[1]);fflush(stdout);
571  delete Proj;
572  }printf("\n");
573 
574  storeOnTree();
575 }
int i
Definition: DBlmapReader.cc:9
#define NULL
Definition: scimark2.h:8
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
const std::complex< double > I
Definition: I.h:8
void getPeakOfLandau(TH1 *InputHisto, double *FitResults, double LowRange=50, double HighRange=5400)
void SiStripGainFromCalibTree::algoEndJob ( )
privatevirtual

Reimplemented from ConditionDBWriter< SiStripApvGain >.

Definition at line 326 of file SiStripGainFromCalibTree.cc.

326  {
327 }
SiStripApvGain * SiStripGainFromCalibTree::getNewObject ( )
privatevirtual

Implements ConditionDBWriter< SiStripApvGain >.

Definition at line 671 of file SiStripGainFromCalibTree.cc.

References a, sistrip::APV, APVsCollOrdered, stAPVGain::DetId, stAPVGain::Gain, NULL, VarParsing::obj, and SiStripApvGain::put().

672 {
674  std::vector<float>* theSiStripVector = NULL;
675  unsigned int PreviousDetId = 0;
676  for(unsigned int a=0;a<APVsCollOrdered.size();a++)
677  {
679  if(APV==NULL){ printf("Bug\n"); continue; }
680  if(APV->DetId != PreviousDetId){
681  if(theSiStripVector!=NULL){
682  SiStripApvGain::Range range(theSiStripVector->begin(),theSiStripVector->end());
683  if ( !obj->put(PreviousDetId,range) ) printf("Bug to put detId = %i\n",PreviousDetId);
684  }
685  theSiStripVector = new std::vector<float>;
686  PreviousDetId = APV->DetId;
687  }
688  theSiStripVector->push_back(APV->Gain);
689  }
690  if(theSiStripVector!=NULL){
691  SiStripApvGain::Range range(theSiStripVector->begin(),theSiStripVector->end());
692  if ( !obj->put(PreviousDetId,range) ) printf("Bug to put detId = %i\n",PreviousDetId);
693  }
694 
695  return obj;
696 }
#define NULL
Definition: scimark2.h:8
bool put(const uint32_t &detID, Range input)
std::vector< stAPVGain * > APVsCollOrdered
tuple obj
Example code starts here #.
Definition: VarParsing.py:655
std::pair< ContainerIterator, ContainerIterator > Range
double a
Definition: hdecay.h:121
void SiStripGainFromCalibTree::getPeakOfLandau ( TH1 *  InputHisto,
double *  FitResults,
double  LowRange = 50,
double  HighRange = 5400 
)
private

Definition at line 330 of file SiStripGainFromCalibTree.cc.

References MinNrEntries.

Referenced by algoComputeMPVandGain().

331 {
332  FitResults[0] = -0.5; //MPV
333  FitResults[1] = 0; //MPV error
334  FitResults[2] = -0.5; //Width
335  FitResults[3] = 0; //Width error
336  FitResults[4] = -0.5; //Fit Chi2/NDF
337 
338  if( InputHisto->GetEntries() < MinNrEntries)return;
339 
340  // perform fit with standard landau
341  TF1* MyLandau = new TF1("MyLandau","landau",LowRange, HighRange);
342  MyLandau->SetParameter(1,300);
343  InputHisto->Fit("MyLandau","0QR WW");
344 
345  // MPV is parameter 1 (0=constant, 1=MPV, 2=Sigma)
346  FitResults[0] = MyLandau->GetParameter(1); //MPV
347  FitResults[1] = MyLandau->GetParError(1); //MPV error
348  FitResults[2] = MyLandau->GetParameter(2); //Width
349  FitResults[3] = MyLandau->GetParError(2); //Width error
350  FitResults[4] = MyLandau->GetChisquare() / MyLandau->GetNDF(); //Fit Chi2/NDF
351 
352  delete MyLandau;
353 }
bool SiStripGainFromCalibTree::IsGoodLandauFit ( double *  FitResults)
private

Definition at line 355 of file SiStripGainFromCalibTree.cc.

References MaxChi2OverNDF, and MaxMPVError.

355  {
356  if(FitResults[0] < 2 )return false;
357  if(FitResults[1] > MaxMPVError )return false;
358  if(FitResults[4] > MaxChi2OverNDF)return false;
359  return true;
360 }
void SiStripGainFromCalibTree::MakeCalibrationMap ( )
private

Definition at line 703 of file SiStripGainFromCalibTree.cc.

References sistrip::APV, APVsColl, stAPVGain::CalibGain, m_calibrationPath, and useCalibration.

Referenced by algoBeginJob().

703  {
704  if(!useCalibration)return;
705 
706 
707  TChain* t1 = new TChain("SiStripCalib/APVGain");
708  t1->Add(m_calibrationPath.c_str());
709 
710  unsigned int tree_DetId;
711  unsigned char tree_APVId;
712  double tree_Gain;
713 
714  t1->SetBranchAddress("DetId" ,&tree_DetId );
715  t1->SetBranchAddress("APVId" ,&tree_APVId );
716  t1->SetBranchAddress("Gain" ,&tree_Gain );
717 
718  for (unsigned int ientry = 0; ientry < t1->GetEntries(); ientry++) {
719  t1->GetEntry(ientry);
720  stAPVGain* APV = APVsColl[(tree_DetId<<3) | (unsigned int)tree_APVId];
721  APV->CalibGain = tree_Gain;
722  }
723 
724 }
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
void SiStripGainFromCalibTree::storeOnTree ( )
private

Definition at line 578 of file SiStripGainFromCalibTree.cc.

References a, sistrip::APV, stAPVGain::APVId, APVsColl, APVsCollOrdered, BAD, stAPVGain::Bin, stAPVGain::DetId, stAPVGain::Eta, stAPVGain::FitChi2, stAPVGain::FitMPV, stAPVGain::FitMPVErr, stAPVGain::FitWidth, stAPVGain::FitWidthErr, stAPVGain::Gain, GOOD, stAPVGain::Index, stAPVGain::isMasked, TFileDirectory::make(), NCluster, stAPVGain::NEntries, NEvent, NTrack, NULL, OutputGains, stAPVGain::Phi, stAPVGain::PreviousGain, stAPVGain::R, stAPVGain::SubDet, tfs, stAPVGain::Thickness, stAPVGain::x, stAPVGain::y, and stAPVGain::z.

Referenced by algoComputeMPVandGain().

579 {
580  unsigned int tree_Index;
581  unsigned int tree_Bin;
582  unsigned int tree_DetId;
583  unsigned char tree_APVId;
584  unsigned char tree_SubDet;
585  float tree_x;
586  float tree_y;
587  float tree_z;
588  float tree_Eta;
589  float tree_R;
590  float tree_Phi;
591  float tree_Thickness;
592  float tree_FitMPV;
593  float tree_FitMPVErr;
594  float tree_FitWidth;
595  float tree_FitWidthErr;
596  float tree_FitChi2NDF;
597  double tree_Gain;
598  double tree_PrevGain;
599  double tree_NEntries;
600  bool tree_isMasked;
601 
602  TTree* MyTree;
603  MyTree = tfs->make<TTree> ("APVGain","APVGain");
604  MyTree->Branch("Index" ,&tree_Index ,"Index/i");
605  MyTree->Branch("Bin" ,&tree_Bin ,"Bin/i");
606  MyTree->Branch("DetId" ,&tree_DetId ,"DetId/i");
607  MyTree->Branch("APVId" ,&tree_APVId ,"APVId/b");
608  MyTree->Branch("SubDet" ,&tree_SubDet ,"SubDet/b");
609  MyTree->Branch("x" ,&tree_x ,"x/F");
610  MyTree->Branch("y" ,&tree_y ,"y/F");
611  MyTree->Branch("z" ,&tree_z ,"z/F");
612  MyTree->Branch("Eta" ,&tree_Eta ,"Eta/F");
613  MyTree->Branch("R" ,&tree_R ,"R/F");
614  MyTree->Branch("Phi" ,&tree_Phi ,"Phi/F");
615  MyTree->Branch("Thickness" ,&tree_Thickness ,"Thickness/F");
616  MyTree->Branch("FitMPV" ,&tree_FitMPV ,"FitMPV/F");
617  MyTree->Branch("FitMPVErr" ,&tree_FitMPVErr ,"FitMPVErr/F");
618  MyTree->Branch("FitWidth" ,&tree_FitWidth ,"FitWidth/F");
619  MyTree->Branch("FitWidthErr" ,&tree_FitWidthErr,"FitWidthErr/F");
620  MyTree->Branch("FitChi2NDF" ,&tree_FitChi2NDF ,"FitChi2NDF/F");
621  MyTree->Branch("Gain" ,&tree_Gain ,"Gain/D");
622  MyTree->Branch("PrevGain" ,&tree_PrevGain ,"PrevGain/D");
623  MyTree->Branch("NEntries" ,&tree_NEntries ,"NEntries/D");
624  MyTree->Branch("isMasked" ,&tree_isMasked ,"isMasked/O");
625 
626 
627  FILE* Gains = fopen(OutputGains.c_str(),"w");
628  fprintf(Gains,"NEvents = %i\n",NEvent);
629  fprintf(Gains,"NTracks = %i\n",NTrack);
630  fprintf(Gains,"NClusters = %i\n",NCluster);
631  fprintf(Gains,"Number of APVs = %lu\n",static_cast<unsigned long>(APVsColl.size()));
632  fprintf(Gains,"GoodFits = %i BadFits = %i ratio = %f\n",GOOD,BAD,(100.0*GOOD)/(GOOD+BAD));
633 
634  for(unsigned int a=0;a<APVsCollOrdered.size();a++){
636  if(APV==NULL)continue;
637 // printf( "%i | %i | PreviousGain = %7.5f NewGain = %7.5f\n", APV->DetId,APV->APVId,APV->PreviousGain,APV->Gain);
638  fprintf(Gains,"%i | %i | PreviousGain = %7.5f NewGain = %7.5f\n", APV->DetId,APV->APVId,APV->PreviousGain,APV->Gain);
639 
640  tree_Index = APV->Index;
641  tree_Bin = APV->Bin;
642  tree_DetId = APV->DetId;
643  tree_APVId = APV->APVId;
644  tree_SubDet = APV->SubDet;
645  tree_x = APV->x;
646  tree_y = APV->y;
647  tree_z = APV->z;
648  tree_Eta = APV->Eta;
649  tree_R = APV->R;
650  tree_Phi = APV->Phi;
651  tree_Thickness = APV->Thickness;
652  tree_FitMPV = APV->FitMPV;
653  tree_FitMPVErr = APV->FitMPVErr;
654  tree_FitWidth = APV->FitWidth;
655  tree_FitWidthErr= APV->FitWidthErr;
656  tree_FitChi2NDF = APV->FitChi2;
657  tree_Gain = APV->Gain;
658  tree_PrevGain = APV->PreviousGain;
659  tree_NEntries = APV->NEntries;
660  tree_isMasked = APV->isMasked;
661 
662  MyTree->Fill();
663  }
664  fclose(Gains);
665 
666 
667 }
edm::Service< TFileService > tfs
#define NULL
Definition: scimark2.h:8
std::vector< stAPVGain * > APVsCollOrdered
__gnu_cxx::hash_map< unsigned int, stAPVGain *, __gnu_cxx::hash< unsigned int >, isEqual > APVsColl
double a
Definition: hdecay.h:121
T * make() const
make new ROOT object

Member Data Documentation

bool SiStripGainFromCalibTree::AllowSaturation
private

Definition at line 149 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

__gnu_cxx::hash_map<unsigned int, stAPVGain*, __gnu_cxx::hash<unsigned int>, isEqual > SiStripGainFromCalibTree::APVsColl
private
std::vector<stAPVGain*> SiStripGainFromCalibTree::APVsCollOrdered
private

Definition at line 186 of file SiStripGainFromCalibTree.cc.

Referenced by algoBeginJob(), getNewObject(), and storeOnTree().

unsigned int SiStripGainFromCalibTree::BAD
private

Definition at line 178 of file SiStripGainFromCalibTree.cc.

Referenced by algoBeginJob(), algoComputeMPVandGain(), and storeOnTree().

int SiStripGainFromCalibTree::CalibrationLevel
private

Definition at line 153 of file SiStripGainFromCalibTree.cc.

Referenced by algoComputeMPVandGain(), and SiStripGainFromCalibTree().

TH2F* SiStripGainFromCalibTree::Charge_Vs_Index
private
TH2F* SiStripGainFromCalibTree::Charge_Vs_Index_Absolute
private

Definition at line 162 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTECM1
private

Definition at line 169 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTECM2
private

Definition at line 170 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTECP1
private

Definition at line 167 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTECP2
private

Definition at line 168 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTIB
private

Definition at line 163 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTIDM
private

Definition at line 166 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTIDP
private

Definition at line 165 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

TH2F* SiStripGainFromCalibTree::Charge_Vs_PathlengthTOB
private

Definition at line 164 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

unsigned int SiStripGainFromCalibTree::ERun
private

Definition at line 176 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

bool SiStripGainFromCalibTree::FirstSetOfConstants
private
unsigned int SiStripGainFromCalibTree::GOOD
private

Definition at line 177 of file SiStripGainFromCalibTree.cc.

Referenced by algoBeginJob(), algoComputeMPVandGain(), and storeOnTree().

string SiStripGainFromCalibTree::m_calibrationPath
private

Definition at line 156 of file SiStripGainFromCalibTree.cc.

Referenced by MakeCalibrationMap(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MaxChi2OverNDF
private

Definition at line 141 of file SiStripGainFromCalibTree.cc.

Referenced by IsGoodLandauFit(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MaxMPVError
private

Definition at line 140 of file SiStripGainFromCalibTree.cc.

Referenced by IsGoodLandauFit(), and SiStripGainFromCalibTree().

unsigned int SiStripGainFromCalibTree::MaxNrStrips
private

Definition at line 146 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MaxTrackChiOverNdf
private

Definition at line 148 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MaxTrackEta
private

Definition at line 145 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MaxTrackMomentum
private

Definition at line 143 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MinNrEntries
private

Definition at line 139 of file SiStripGainFromCalibTree.cc.

Referenced by getPeakOfLandau(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MinTrackEta
private

Definition at line 144 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

unsigned int SiStripGainFromCalibTree::MinTrackHits
private

Definition at line 147 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

double SiStripGainFromCalibTree::MinTrackMomentum
private

Definition at line 142 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

unsigned int SiStripGainFromCalibTree::NCluster
private

Definition at line 174 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), algoBeginJob(), and storeOnTree().

unsigned int SiStripGainFromCalibTree::NEvent
private

Definition at line 172 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), algoBeginJob(), and storeOnTree().

unsigned int SiStripGainFromCalibTree::NTrack
private

Definition at line 173 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), algoBeginJob(), and storeOnTree().

bool SiStripGainFromCalibTree::OldGainRemoving
private

Definition at line 152 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

std::string SiStripGainFromCalibTree::OutputGains
private

Definition at line 158 of file SiStripGainFromCalibTree.cc.

Referenced by SiStripGainFromCalibTree(), and storeOnTree().

unsigned int SiStripGainFromCalibTree::SRun
private

Definition at line 175 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and algoBeginJob().

edm::Service<TFileService> SiStripGainFromCalibTree::tfs
private

Definition at line 137 of file SiStripGainFromCalibTree.cc.

Referenced by algoBeginJob(), and storeOnTree().

bool SiStripGainFromCalibTree::useCalibration
private
bool SiStripGainFromCalibTree::Validation
private

Definition at line 151 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().

vector<string> SiStripGainFromCalibTree::VInputFiles
private

Definition at line 159 of file SiStripGainFromCalibTree.cc.

Referenced by algoAnalyzeTheTree(), and SiStripGainFromCalibTree().