-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 160116 b: "refs/tags/CMSSW_7_0_X_2014-01-03-1400" c: 082b73a h: "refs/heads/l1t-devel-CMSSW_7_4_0_pre5" v: v3
- Loading branch information
Showing
47,660 changed files
with
12,704,642 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
__init__.py | ||
*.pyc |
8 changes: 8 additions & 0 deletions
8
tags/CMSSW_7_0_X_2014-01-03-1400/Alignment/CocoaAnalysis/BuildFile.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<use name="Alignment/CocoaUtilities"/> | ||
<use name="Alignment/CocoaModel"/> | ||
<use name="CLHEP"/> | ||
<use name="rootcore"/> | ||
<use name="meschach"/> | ||
<export> | ||
<lib name="1"/> | ||
</export> |
45 changes: 45 additions & 0 deletions
45
tags/CMSSW_7_0_X_2014-01-03-1400/Alignment/CocoaAnalysis/interface/FittedEntriesManager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// COCOA class header file | ||
//Id: FittedEntriesManager.h | ||
//CAT: Model | ||
// | ||
// Class to manage the sets of fitted entries (one set per each measurement data set) | ||
// | ||
// History: v1.0 | ||
// Pedro Arce | ||
|
||
#ifndef _FittedEntriesManager_HH | ||
#define _FittedEntriesManager_HH | ||
|
||
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" | ||
#include "Alignment/CocoaAnalysis/interface/FittedEntriesSet.h" | ||
|
||
|
||
class FittedEntriesManager | ||
{ | ||
|
||
public: | ||
//---------- Constructors / Destructor | ||
FittedEntriesManager(){ }; | ||
~FittedEntriesManager(){ }; | ||
static FittedEntriesManager* getInstance(); | ||
void AddFittedEntriesSet( FittedEntriesSet* fents); | ||
void MakeHistos(); | ||
|
||
public: | ||
std::vector< FittedEntriesSet* > getFittedEntriesSets() const { | ||
return theFittedEntriesSets; } | ||
|
||
private: | ||
ALIstring createFileName( const ALIstring& optoName, const ALIstring& entryName); | ||
void dumpEntriesSubstraction( std::ofstream& fout, FittedEntriesSet& fes, ALIint order1, ALIint order2 ); | ||
|
||
private: | ||
static FittedEntriesManager* instance; | ||
std::vector< FittedEntriesSet* > theFittedEntriesSets; | ||
|
||
void GetDifferentBetweenLasers(); | ||
|
||
}; | ||
|
||
#endif | ||
|
67 changes: 67 additions & 0 deletions
67
tags/CMSSW_7_0_X_2014-01-03-1400/Alignment/CocoaAnalysis/interface/FittedEntriesSet.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// COCOA class header file | ||
//Id: FittedEntriesSet.h | ||
//CAT: Model | ||
// | ||
// Class to store set of fitted entries with date | ||
// | ||
// History: v1.0 | ||
// Pedro Arce | ||
|
||
#ifndef _FittedEntriesSet_HH | ||
#define _FittedEntriesSet_HH | ||
|
||
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" | ||
#include <ctime> | ||
#include <vector> | ||
#include "Alignment/CocoaAnalysis/interface/FittedEntry.h" | ||
//#ifdef MAT_MESCHACH | ||
#include "Alignment/CocoaFit/interface/MatrixMeschach.h" | ||
//typedef MatrixMeschach ALIMatrix; | ||
//#endif | ||
|
||
class FittedEntriesSet | ||
{ | ||
|
||
public: | ||
//---------- Constructors / Destructor | ||
FittedEntriesSet( MatrixMeschach* AtWAMatrix ); | ||
FittedEntriesSet( const std::vector<ALIstring>& wl ); | ||
//---- Average a list of FittedEntriesSet's | ||
FittedEntriesSet( const std::vector<FittedEntriesSet*>& vSets ); | ||
~FittedEntriesSet(){ }; | ||
void Fill(); | ||
void FillEntries(); | ||
void FillCorrelations(); | ||
void CreateCorrelationMatrix( const ALIuint nent ); | ||
void FillEntriesFromFile( const std::vector<ALIstring>& wl); | ||
void FillEntriesAveragingSets( const std::vector<FittedEntriesSet*>& vSets ); | ||
|
||
void SetOptOEntries(); | ||
|
||
public: | ||
std::vector< FittedEntry* >& FittedEntries(){ | ||
return theFittedEntries; | ||
} | ||
|
||
//GET AND SET METHODS | ||
ALIstring& getDate() { | ||
return theDate; | ||
} | ||
ALIstring& getTime() { | ||
return theTime; | ||
} | ||
|
||
public: | ||
|
||
std::vector< FittedEntry* > theFittedEntries; | ||
private: | ||
//t struct tm theTime; | ||
ALIstring theDate; | ||
ALIstring theTime; | ||
std::vector< std::vector<ALIdouble> > theCorrelationMatrix; | ||
ALIint theMinEntryQuality; | ||
MatrixMeschach* theEntriesErrorMatrix; | ||
}; | ||
|
||
#endif | ||
|
77 changes: 77 additions & 0 deletions
77
tags/CMSSW_7_0_X_2014-01-03-1400/Alignment/CocoaAnalysis/interface/FittedEntry.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
// COCOA class header file | ||
//Id: FittedEntry.h | ||
//CAT: Model | ||
// | ||
// Class to store the data of a fitted entry (only those of quality 'unk') | ||
// | ||
// History: v1.0 | ||
// Pedro Arce | ||
|
||
#ifndef FittedEntry_HH | ||
#define FittedEntry_HH | ||
|
||
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" | ||
#include <vector> | ||
class Entry; | ||
|
||
class FittedEntry | ||
{ | ||
|
||
public: | ||
//---------- Constructors / Destructor | ||
FittedEntry(){ }; | ||
FittedEntry( Entry* entry, ALIint order, ALIdouble sigma); | ||
FittedEntry( ALIstring name, float value, float sigma); | ||
FittedEntry( const std::vector<FittedEntry*>& vFEntry ); | ||
~FittedEntry(){ }; | ||
|
||
void BuildName(); | ||
|
||
ALIstring getOptOName() const { | ||
return theOptOName; | ||
} | ||
ALIstring getEntryName() const { | ||
return theEntryName; | ||
} | ||
ALIstring getName() const { | ||
return theName; | ||
} | ||
ALIdouble getValue() const { | ||
return theValue; | ||
} | ||
ALIdouble getSigma() const { | ||
return theSigma; | ||
} | ||
ALIdouble getOrigValue() const { | ||
return theOrigValue; | ||
} | ||
ALIdouble getOrigSigma() const { | ||
return theOrigSigma; | ||
} | ||
ALIint getOrder() const { | ||
return theOrder; | ||
} | ||
ALIint getQuality() const { | ||
return theQuality; | ||
} | ||
Entry* getEntry() const { | ||
return theEntry; | ||
} | ||
|
||
|
||
private: | ||
ALIdouble theValue; | ||
Entry* theEntry; | ||
ALIint theOrder; | ||
ALIstring theName; | ||
ALIstring theOptOName; | ||
ALIstring theEntryName; | ||
ALIdouble theSigma; | ||
ALIdouble theOrigValue; | ||
ALIdouble theOrigSigma; | ||
ALIint theQuality; | ||
|
||
}; | ||
|
||
#endif | ||
|
51 changes: 51 additions & 0 deletions
51
tags/CMSSW_7_0_X_2014-01-03-1400/Alignment/CocoaAnalysis/interface/HistoDef.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// COCOA class header file | ||
//Id: HistoDef.h | ||
//CAT: Model | ||
// | ||
// Class to store the data of a fitted entry (only those of quality 'unk') | ||
// | ||
// History: v1.0 | ||
// Pedro Arce | ||
|
||
#ifndef HistoDef_HH | ||
#define HistoDef_HH | ||
|
||
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" | ||
#include <vector> | ||
class Entry; | ||
|
||
class HistoDef | ||
{ | ||
|
||
public: | ||
//---------- Constructors / Destructor | ||
HistoDef(){ }; | ||
void init( ALIstring name ); | ||
~HistoDef(){ }; | ||
|
||
ALIstring name() const { | ||
return theName; | ||
} | ||
float minimum() const { | ||
return theMin; | ||
} | ||
float maximum() const { | ||
return theMax; | ||
} | ||
|
||
void setMinimum( float min ){ | ||
theMin = min; | ||
} | ||
void setMaximum( float max ){ | ||
theMax = max; | ||
} | ||
|
||
private: | ||
ALIstring theName; | ||
float theMin; | ||
float theMax; | ||
|
||
}; | ||
|
||
#endif | ||
|
72 changes: 72 additions & 0 deletions
72
tags/CMSSW_7_0_X_2014-01-03-1400/Alignment/CocoaAnalysis/interface/NtupleManager.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// COCOA class header file | ||
//Id: NtupleManager.h | ||
//CAT: Analysis | ||
// | ||
// History: v1.0 | ||
// Luca Scodellaro | ||
|
||
#ifndef _NtupleManager_HH | ||
#define _NtupleManager_HH | ||
|
||
#include "Alignment/CocoaUtilities/interface/CocoaGlobals.h" | ||
#include "Alignment/CocoaFit/interface/MatrixMeschach.h" | ||
#include "Alignment/CocoaAnalysis/interface/NtupleObjects.h" | ||
#include "CLHEP/Vector/Rotation.h" | ||
|
||
class TFile; | ||
class TTree; | ||
class TClonesArray; | ||
|
||
class NtupleManager | ||
{ | ||
|
||
public: | ||
//---------- Constructors / Destructor | ||
NtupleManager(){ }; | ||
~NtupleManager(){ }; | ||
static NtupleManager* getInstance(); | ||
void BookNtuple(); | ||
void InitNtuple(); | ||
void FillNtupleTree(); | ||
void WriteNtuple(); | ||
void FillChi2(); | ||
void FillFitParameters(MatrixMeschach* AtWAMatrix); | ||
void FillOptObjects(MatrixMeschach* AtWAMatrix); | ||
void FillMeasurements(); | ||
|
||
|
||
private: | ||
static NtupleManager* instance; | ||
|
||
void GetGlobalAngles(const CLHEP::HepRotation& rmGlob, double *theta); | ||
|
||
TFile *theRootFile; | ||
|
||
TTree *CocoaTree; | ||
/* TTree *FitParametersTree; */ | ||
/* TTree *MeasurementsTree; */ | ||
|
||
TClonesArray* CloneFitParam; FitParam *FitParamA; | ||
TClonesArray* CloneOptObject; OptObject *OptObjectA; | ||
TClonesArray* CloneSensor2DMeas; Sensor2DMeas *Sensor2DMeasA; | ||
TClonesArray* CloneDistancemeterMeas; DistancemeterMeas *DistancemeterMeasA; | ||
TClonesArray* CloneDistancemeter1DimMeas; Distancemeter1DimMeas *Distancemeter1DimMeasA; | ||
TClonesArray* CloneTiltmeterMeas; TiltmeterMeas *TiltmeterMeasA; | ||
TClonesArray* CloneCopsMeas; CopsMeas *CopsMeasA; | ||
|
||
/* bool BookFitParameters; */ | ||
/* bool BookMeasurements; */ | ||
|
||
double Chi2Measurements, Chi2CalibratedParameters; | ||
int NDegreesOfFreedom; | ||
int NFitParameters; | ||
int NOptObjects; | ||
int NSensor2D; | ||
int NDistancemeter; | ||
int NDistancemeter1Dim; | ||
int NTiltmeter; | ||
int NCops; | ||
}; | ||
|
||
#endif | ||
|
Oops, something went wrong.