Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:45:39

0001 #ifndef Alignment_OfflineValidation_EopVariables_h
0002 #define Alignment_OfflineValidation_EopVariables_h
0003 
0004 // For ROOT types with '_t':
0005 #include <Rtypes.h>
0006 
0007 /// container to hold data to be written into TTree
0008 struct EopVariables {
0009   /// constructor initialises to empty values
0010   EopVariables() { this->clear(); }
0011 
0012   /// set to empty values
0013   void clear() {
0014     /// doubles
0015     track_outerRadius = track_chi2 = track_normalizedChi2 = track_p = track_pt = track_ptError = track_theta =
0016         track_eta = track_phi = track_emc1 = track_emc3 = track_emc5 = track_hac1 = track_hac3 = track_hac5 =
0017             track_maxPNearby = track_EnergyIn = track_EnergyOut = distofmax = 0.;
0018     /// integers
0019     track_charge = track_nHits = track_nLostHits = track_innerOk = 0;
0020   }
0021   /// fill variables into tree
0022   void fillVariables(Int_t charge,
0023                      Int_t innerOk,
0024                      Double_t outerRadius,
0025                      Int_t numberOfValidHits,
0026                      Int_t numberOfLostHits,
0027                      Double_t chi2,
0028                      Double_t normalizedChi2,
0029                      Double_t p,
0030                      Double_t pt,
0031                      Double_t ptError,
0032                      Double_t theta,
0033                      Double_t eta,
0034                      Double_t phi,
0035                      Double_t emc1,
0036                      Double_t emc3,
0037                      Double_t emc5,
0038                      Double_t hac1,
0039                      Double_t hac3,
0040                      Double_t hac5,
0041                      Double_t maxPNearby,
0042                      Double_t dist,
0043                      Double_t EnergyIn,
0044                      Double_t EnergyOut) {
0045     track_charge = charge;
0046     track_nHits = numberOfValidHits;
0047     track_nLostHits = numberOfLostHits;
0048     track_innerOk = innerOk;
0049     track_outerRadius = outerRadius;
0050     track_chi2 = chi2;
0051     track_normalizedChi2 = normalizedChi2;
0052     track_p = p;
0053     track_pt = pt;
0054     track_ptError = ptError;
0055     track_theta = theta;
0056     track_eta = eta;
0057     track_phi = phi;
0058     track_emc1 = emc1;
0059     track_emc3 = emc3;
0060     track_emc5 = emc5;
0061     track_hac1 = hac1;
0062     track_hac3 = hac3;
0063     track_hac5 = hac5;
0064     track_maxPNearby = maxPNearby;
0065     track_EnergyIn = EnergyIn;
0066     track_EnergyOut = EnergyOut;
0067     distofmax = dist;
0068   }
0069 
0070   Double_t track_outerRadius, track_chi2, track_normalizedChi2, track_p, track_pt, track_ptError, track_theta,
0071       track_eta, track_phi, track_emc1, track_emc3, track_emc5, track_hac1, track_hac3, track_hac5, track_maxPNearby,
0072       track_EnergyIn, track_EnergyOut, distofmax;
0073 
0074   Int_t track_charge, track_nHits, track_nLostHits, track_innerOk;
0075 };
0076 
0077 #endif